﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace KeyCtrl
{
    class AccumulativeKeyCombo : KeyCombo
    {
        protected Boolean _finalState = false;

        new public void KeyUp(Keys key)
        {
            _finalState = true;
        }

        new public Boolean KeyDown(Keys key)
        {
            if (_finalState)
                _pressedKeyList.Clear();

            _finalState = false;
            return ((KeyCombo)this).KeyDown(key);
        }
    }
}
